#ifndef __WORK_QUE_H__
#define __WORK_QUE_H__
#include "head.h"


#define PWD_LENGTH 256
#define PATH_LENGTH 512

typedef struct tag_node{
    int fd;
    int mod;//0 接收或是 1 发送
    char fileName[PATH_LENGTH];
    struct tag_node *pNext;
}taskNode_t,*ptaskNode_t; 

typedef struct{
    ptaskNode_t queHead,queTail;
    int queCapacity;//队列能力
    int queSize;//队列当前的元素个数
    pthread_mutex_t queMutex;
}taskQue_t,*ptaskQue_t;

int que_init(ptaskQue_t,int);
int que_set(ptaskQue_t,ptaskNode_t);
int que_get(ptaskQue_t,ptaskNode_t*);
#endif

